home *** CD-ROM | disk | FTP | other *** search
/ The Epic Collection 3 / Epic Collection 3, The (1997)(Epic Marketing)[!].iso / useful_tools / tolleuhr / source / makefile next >
Makefile  |  1996-03-08  |  1KB  |  62 lines

  1. #
  2. # makefile to build TolleUhr.000, TolleUhr.020 and libraries
  3. #
  4.  
  5. # compiler driver (including version)
  6. #
  7. CC        = gcc#-V2.3.3
  8.  
  9. # default compiler flags
  10. #
  11. CFLAGS        = -O2 -fno-function-cse -fno-force-mem -msmall-code
  12.  
  13. # useful for development (faster compiling since no optimizations)
  14. #
  15. #CFLAGS        = -Dextern=static -D__OPTIMIZE__ -w -msmall-code
  16.  
  17. # linker options (no debug info,no startup, no libraries)
  18. #
  19. LDFLAGS        = -s -nostdlib
  20.  
  21. # which libraries (currently none)
  22. #
  23. LDLIBS        =
  24.  
  25. # default targets
  26. #
  27. all:        TolleUhr.000 TolleUhr.020
  28.  
  29. # libraries (if requested)
  30. #
  31. libs:        tolleuhr.library.000 tolleuhr.library.020
  32.  
  33. # plain version (libmath.a -> mul32/div[u]32/mod[u]32 for 68000)
  34. #
  35. TolleUhr.000:    TolleUhr.o00
  36.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
  37.  
  38. tolleuhr.library.000: tuLibInit.o TolleUhr.o00
  39.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) lib/libmath.a
  40.  
  41. TolleUhr.o00:    TolleUhr.c
  42.         $(CC) $(CFLAGS) -o $@ $< -c
  43.  
  44. # 020 and up
  45. #
  46. TolleUhr.020:    TolleUhr.o20
  47.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS)
  48.  
  49. tolleuhr.library.020: tuLibInit.o TolleUhr.o20
  50.         $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS)
  51.  
  52. TolleUhr.o20:    TolleUhr.c
  53.         $(CC) $(CFLAGS) -m68020 -o $@ $< -c
  54.  
  55. # library startup (change to suit your asm setup!)
  56. #
  57. tuLibInit.o:    tulibinit.s
  58.         snma i=include: s=on $?
  59.         hunk2gcc $@
  60.         rm $@
  61.         mv obj.* $@
  62.